"""
Created on 2024-07-10
@author:刘飞
@description: Python=3.12
@email:liufei-love@foxmail.com
"""

from os.path import dirname, join
from sys import version_info

import setuptools

# Python版本检测
if version_info < (3, 12, 4):
    raise SystemExit("Sorry! yc_django_logging requires python 3.12.4 or later.")

# 版本读取
with open(join(dirname(__file__), "VERSION"), "rb") as f:
    version = f.read().decode("ascii").strip()

# 描述
with open("README.md", "rb") as fh:
    long_description = fh.read().decode('utf-8')

# 包
packages = setuptools.find_packages()

# 设置
setuptools.setup(
    name="yc_django_logging",
    version=version,
    author="LiuFei",
    license="MIT",
    author_email="liufei-love@foxmail.com",
    description="Django日志记录工具开发",
    long_description=long_description,
    long_description_content_type="text/markdown",
    install_requires=[
        "yc_django_utils>=0.0.3",
        "django-simple-history>=3.7.0"
    ],
    packages=packages,
    include_package_data=True,
    classifiers=[
        # 许可证信息
        'License :: OSI Approved :: MIT License',
        # Python版本
        "Programming Language :: Python :: 3.12"
    ],
)
